<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Login extends CI_Controller {

	public function __construct(){
		parent::__construct();
    }
	
	function index(){
		$data['error'] = "no";
		$this->load->view('admin/admin-login',$data);
	}	

	function admin(){
		$data['error']="yes";
		$this->load->view('admin/admin-login', $data);
	}
	
	function _login(){
		$data['error']="yes";
		if (isset($_POST['admin-login'])){
			redirect('paneladm/indexadm');
		}
		redirect('paneladm/indexadm');
	}
}
	
	